import service from "@/components/js/service";


export const AppFormDesignApi = {
    getBaseUrl() {
        return "/app_form_design";
    },
    designBean(formId){
        return service.get(this.getBaseUrl() + "/designBean/" + formId);
    },
    mergeBaseInfo(params) {
        return service.post(this.getBaseUrl() + "/mergeBaseInfo", params);
    },
    saveToDb(params) {
        return service.post(this.getBaseUrl() + "/saveToDb", params);
    },
    getNextFieldIndex(formId) {
        return service.get(this.getBaseUrl() + "/getNextFieldIndex/" + formId);
    },
    formBeanDesign(id){
        return service.get(this.getBaseUrl() + "/formBeanDesign/" + id);
    },
    removeEdit(formId) {
        return service.get(this.getBaseUrl() + "/removeEdit/" + formId);
    },
    addField(params) {
        return service.post(this.getBaseUrl() + "/addField", params);
    },
}
